import Vue from 'vue'
import App from '@/App'
import store from '@/store'
import config from '@/config.js'
import toast from '@/common/toast/index.js'
import cuCustom from './colorui/components/cu-custom.vue'

Vue.component('cu-custom',cuCustom)
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$toast = toast

//把rgb(255,12,12,255) 格式化 [255,12,12,255]
Vue.prototype.formatColorArr = rgb => rgb.match(/[0-9]{1,}/g).map(item => (item * 1));

Vue.prototype.$GLOBLE = config
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
